package my.zuul.demo.vo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ZuulVo {
    @Value("${zuul.routes.userProvider.path}")
    private String path;
    @Value("${zuul.routes.userProvider.service-id}")
    private String serviceId;
    @Value("${zuul.routes.userProvider.strip-prefix}")
    private String prefix;

    @Override
    public String toString() {
        return "ZuulVo{" +
                "path='" + path + '\'' +
                ", serviceId='" + serviceId + '\'' +
                ", prefix='" + prefix + '\'' +
                '}';
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }
}
